﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace SachOnlineLibrary.Public
{
    public class Loai
    {
        private int maLoai;

        public int MaLoai
        {
            get { return maLoai; }
            set { maLoai = value; }
        }
        private string tenLoai;

        public string TenLoai
        {
            get { return tenLoai; }
            set { tenLoai = value; }
        }
        public void ChuyenDoi(DataRow dr)
        {
            MaLoai = int.Parse(dr[0].ToString());
            TenLoai = dr[1].ToString();
        }
    }
}
